using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace FeatureWally.Client.Handlers {
    public class ControlHandler {
        private Control _activeControl = null;
        private static ControlHandler _current = null;

        private ControlHandler() {
        }

        public static ControlHandler Current {
            get {
                if (_current == null)
                    _current = new ControlHandler();
                return _current;
            }
        }

        public void Register(Control control) {
            _activeControl = control;
        }
        public Control ActiveControl {
            get { return _activeControl; }
        }
        public void UnRegister() {
            _activeControl = null;
        }
    }
}
